/*
 *
 * Copyright (c) 2023 - future
 * @author fzh
 * @email e_341877120_mail@163.com
 * @link https://mvnrepository.com/search?q=io.github.xrfzh.cn
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package cn.xrfzh.api.video.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <实体类Video>的数据传输对象类
 *
 * @author fzh
 * @email e_341877120_mail@163.com
 * @date 2023-10-24 08:34:41
 */
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class VideoDto {

    private static final long serialVersionUID = 1L;

    /**
     * 视频标题
     */
    @ApiModelProperty("视频标题")
    @NotBlank(message = "视频标题不能为空")
    private String title;

    /**
     * 视频描述
     */
    @ApiModelProperty("视频描述")
    @NotBlank(message = "视频描述不能为空")
    private String description;

    /**
     * 存储视频文件的URL
     */
    @ApiModelProperty("存储视频文件的URL")
    @NotBlank(message = "存储视频文件的URL不能为空")
    private String videoUrl;

    /**
     * 视频缩略图的URL
     */
    @ApiModelProperty("视频缩略图的URL")
    private String thumbnailUrl;

    /**
     * 视频时长
     */
    @ApiModelProperty("视频时长")
    private Integer duration;

    /**
     * 外键，指向内容分类表中的分类ID
     */
    @ApiModelProperty("外键，指向内容分类表中的分类ID")
    @NotNull(message = "分类ID不能为空")
    private Integer categoryId;

}
